﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Loginaspx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>用户登录</title>   
    <style type="text/css">
        .auto-style1 {
            text-align: center;
        }
        .auto-style2 {
            text-align: right;
        }
        .auto-style3 {
            background-color: #33CC33;
        }
        .auto-style4 {
            color: #666666;
        }
        .auto-style5 {
            text-align: center;
            color: #666666;
        }
    </style>
</head>

<body>
    <p>
        <br />
        <br />
    </p>
    <form id="form1" runat="server">
        <p class="auto-style1">
            <img src="image/logo.png" /></p>
      <section class="mainbody">
          <div class="leftside">
              <table align="center">
                  <tr>
                      <td class="auto-style1" colspan="2">登录</td>
                  </tr>
                  <tr>
                      <td class="auto-style2">用户名：</td>
                      <td>
                          <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
                      </td>
                      <td>
                          <asp:RequiredFieldValidator ControlToValidate="txtName" Display="Dynamic"
                              ForeColor="Red" ID="rfvName" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                      </td>
                  </tr>
                  <tr>
                      <td class="auto-style2">密码：</td>
                      <td>
                          <asp:TextBox ID="txtPwd" runat="server" TextMode="Password"></asp:TextBox>
                      </td>
                      <td>
                          <asp:RequiredFieldValidator ControlToValidate="txtPwd" Display="Dynamic"
                              ForeColor="Red" ID="rfvPwd" runat="server" ErrorMessage="必填"></asp:RequiredFieldValidator>
                      </td>
                  </tr>
                  <tr>
                      <td colspan="2" class="auto-style2">
                          <asp:Button ID="btnLogin" runat="server" Text="立即登录" CssClass="auto-style3" OnClick="BtnLogin_Click"/>
                      </td>
                  </tr>
                  <tr>
                      <td class="auto-style5"><a href="NewUser.aspx"><span class="auto-style4">我要注册</span></a></td>
                      <td class="auto-style2"><a href="GetPwd.aspx"><span class="auto-style4">忘记密码</span></a></td>
                  </tr>
                  <tr>
                      <td colspan="2" class="auto-style1">
                          <asp:Label ID="lblMsg" runat="server" ForeColor="Red"></asp:Label>
                      </td>
                  </tr>
              </table>
          </div>
          <div class="clear"></div>
      </section>  
    </form>
    <p class="auto-style1">
        &nbsp;</p>
</body>
</html>
